<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'login_error.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
      	<div style="margin: 20" align="left">
    <h1>AReport系统</h1>
    <h4>您尚未登录或是登录超时,请重新登录！</h4>
    <p>系统将在&nbsp;<span id="tt" style="color:red;font:bold;">3</span>&nbsp;秒后自动跳转到登录页，若您的浏览器不支持自动跳转，
    请点击<a href="<%=basePath%>master/login/login.jsp" onclick="javascript:top.location.replace(this.href);event.returnValue=false;">[这儿]</a>。</p>
  	</div>
  	<script type="text/javascript" src="js/lib/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="js/pub.js"></script>
  	<script type="text/javascript">
  		var i=3;
  		var timer=window.setInterval(function(){
			i--;
			if(i<=0){
				window.clearTimeout(timer);
				top.location.replace("<%=basePath%>master/login/login.jsp");
			}
			document.getElementById("tt").innerHTML=i;
  		}, 1000);
  	</script>
  </body>
</html>
